<?php
$ip = "2975179c43344ec4a7d0070fc55852efin01.internal.cn-south-1.mysql.rds.myhuaweicloud.com";
$user = "znms";
$pwd = "kk0s-V8AV7dwCe";
return array(
	'components' => array(
	  'user'=>array(
                'class'  => 'CDbConnection',
                'connectionString' => "mysql:host={$ip};port=3306;dbname=user",
                'emulatePrepare' => true,
                'username' =>$user,
                'password' => $pwd,
                'charset' => 'utf8',
                'tablePrefix' => 'u_',
            ),
             //智能門鎖产品
             'znms_product'=>array(
                 'class'  => 'CDbConnection',
                 'connectionString' => "mysql:host={$ip};port=3306;dbname=product_znms_xcyd",
                 'emulatePrepare' => true,
                 'username' =>$user,
                 'password' => $pwd,
                 'charset' => 'utf8',
                 'tablePrefix' => 'z_',
             ),

	),
);

